<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

Route::get('think', function () {
    return 'hello,ThinkPHP5!';
});

Route::get('hello/:name', 'index/hello');

Route::group('api/v1',[
    'getusers' => 'Api/index/getUsers',
    'course' => 'Api/Course/index',//农产品产品接口 
    'categorypages' => 'Api/Course/CategoryPages',
    // 'lesson' => 'Api/Lesson/index',//课时接口
    'cate' => 'Api/Cate/index',//分类列表接口
    'purchasedata' => 'Api/Purchasedata/index',//Echarts图表数据接口
    'number' => 'Api/Purchasedata/number',//Echarts图表nmber加一接口
    // 'sold_good' => 'Api/Course/soldGood',//畅销好课列表接口
    'index_data_block' => 'Api/Course/indexDataBlock',//首页数据块接口
    'course_detail' => 'Api/Course/courseDetail',//产品详情接口
    'login' => 'Api/Login/wxlogin',//2.登录接口
    'add_comment' => 'Api/Comment/addComment',//2.评论接口
    'search' => 'Api/Course/search',//搜索功能接口
])->pattern(['offset'=> '\d+','limit'=> '\d+']);